package com.example.neochevbook;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class Ajouterappartement extends Activity {

	private Button Monappartement = null;
	private Button Annuler = null;
	private Button Ajouterappartement = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ajouterappartement);
		
		Monappartement = (Button) findViewById(R.id.buttonMonappartement1);
		Annuler = (Button) findViewById(R.id.buttonConsulterAppartement);
		Ajouterappartement = (Button) findViewById(R.id.buttonAjouterAppartement);
			
		Monappartement.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent myIntent = new Intent(getApplicationContext(), Modifierappartement.class);
				startActivity(myIntent);
			}
		});
		
		Annuler.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	
		
		/* Ajouterappartement.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent myIntent = new Intent(getApplicationContext(), Modifierappartement.class);
				startActivity(myIntent);
			}
		}); */


	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.ajouterappartement, menu);
		return true;
	}

}
